package com.qf.wangqing.sportsnews.bean.slidingbean;

import java.util.List;

/**
 * Created by WangQing on 2016/12/19.
 */

public class HotDataEntity {
    private List<String> tags ;

    private String create_time;

    private int status;

    private HotCommunityEntity community;

    private int type;

    private int comment_num;

    private String id;

    private HotAuthorEntity author;

    private String title;

    private String comment_time;
    private int like_num;

    private String description;

    private List<String> videos ;

    private String video_preview_url;

    private int video_time;

    private boolean hot;

    private boolean liked;

    private List<String> images ;

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public List<String> getTags() {
        return tags;
    }

    public void setTags(List<String> tags) {
        this.tags = tags;
    }

    public String getCreate_time() {
        return create_time;
    }

    public void setCreate_time(String create_time) {
        this.create_time = create_time;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public HotCommunityEntity getCommunity() {
        return community;
    }

    public void setCommunity(HotCommunityEntity community) {
        this.community = community;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getComment_num() {
        return comment_num;
    }

    public void setComment_num(int comment_num) {
        this.comment_num = comment_num;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public HotAuthorEntity getAuthor() {
        return author;
    }

    public void setAuthor(HotAuthorEntity author) {
        this.author = author;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getComment_time() {
        return comment_time;
    }

    public void setComment_time(String comment_time) {
        this.comment_time = comment_time;
    }

    public int getLike_num() {
        return like_num;
    }

    public void setLike_num(int like_num) {
        this.like_num = like_num;
    }

    public List<String> getVideos() {
        return videos;
    }

    public void setVideos(List<String> videos) {
        this.videos = videos;
    }

    public String getVideo_preview_url() {
        return video_preview_url;
    }

    public void setVideo_preview_url(String video_preview_url) {
        this.video_preview_url = video_preview_url;
    }

    public int getVideo_time() {
        return video_time;
    }

    public void setVideo_time(int video_time) {
        this.video_time = video_time;
    }

    public boolean isHot() {
        return hot;
    }

    public void setHot(boolean hot) {
        this.hot = hot;
    }

    public boolean isLiked() {
        return liked;
    }

    public void setLiked(boolean liked) {
        this.liked = liked;
    }

    public List<String> getImages() {
        return images;
    }

    public void setImages(List<String> images) {
        this.images = images;
    }

    public int getVideoImgSize(){
        if (videos.size()>0) {
            return videos.size();
        }
        else if(images.size()>0){
            return images.size();
        }
        else {
            return 0;}
    }

    public String getFullContentImg(){
        if (images.size()==1) {
//            for (int i = 0; i < images.size(); i++) {
                return "http://roi.skst.cn/"+images.get(0)+"!bigger";
//            }
        }else {
            return "http://roi.skst.cn/"+video_preview_url+"!bigger";
        }

    }



}
